<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-satisfaction-window-detail-his" >
  	
	<div class="easyui-panel list-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
		<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
			<!--
			<p>
				<span class="badge">提示</span>
				 <strong><font color="red">双击</font></strong> 记录行, 可以查看事项详情
			</p>
			-->
		</div>
		<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto',
		pagination : true">
		
		<thead>						
			<tr>				
				<th field="doct_name" width="60" align="center">人员姓名</th>
				<th field="cnt" width="40" align="center">就诊人数</th>
				<th field="total_num" width="40" align="center">评价人数</th>
				<th field="satisfy_0" width="40" align="center" >非常满意</th>
				<th field="satisfy_1" width="40" align="center" >满意</th>
				<th field="satisfy_2" width="40" align="center" >基本满意</th>				
				<th field="satisfy_3" width="40" align="center">基本不满意</th>
				<th field="satisfy_4" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:red;';							
						}
					}
				">不满意</th>		
				<th field="satisfy_rate" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value){
							if( value <= 70)
							return 'color:red;';
							else
							return 'color:green;';							
						}else
						return null
					},formatter: function(value,row,index){
						if (value > 0){
							return   value.toFixed(2) +'%';							
						}
					}
					
				">满意率</th>											
			</tr>                    
		</thead>
		
	</table>
		
	</table>
	</div> 

	<div class="easyui-panel form-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
			
	</div>
</div>
<script>
requirejs(['popListPage','satisfactionWindowHis','domReady!'],function(listPage,satisfactionWindow,doc){
	
	listPage.init({doc:doc,
		rootId:'panel-satisfaction-window-detail-his',
		subSystemCode:'satisfaction',
		moduleCode:'satisEvaluateHisWindowDetail',	
		queryModule:'satisEvaluateHis',
		queryMethod:'getWindowDetailDomain'
	});
});	
</script>

